package com.tolls;

public class MyThread extends  Thread {


    private static int num = 0;

    private String name;

    public MyThread(String name){

      this.name = name;

    }

//    public MyThread(){
//
//        num++;
//
//    }

    public void run(){

       // System.out.println("主动创建的第"+num+"线程");

        System.out.println("name"+name+"子线程id"+Thread.currentThread().getId());
    }
}
